export { }
class Person {
    name: string
    age: number
    //只读属性 赋值后不允许再修改
    protected readonly gender:boolean
    constructor(name: string, age: number,gender:boolean) {
        this.name = name
        this.age = age
        this.gender=gender
    }
    sayHi(): void {
        console.log(`I am${this.name} 今年${this.age}岁了`)
    }
}